package com.amoscloud;

import java.util.Scanner;

/**
 * @description:
 * @author: HuangJiaxin
 * @create: 2022-05-29 21:39
 **/
public class Test038 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        in.close();

        String[] split = line.split(",");


        String combine = split[0] + "/" + split[1];
        System.out.println(combine);
        String url = combine.replaceAll("/+", "/");
        System.out.println(url);
    }

}
